package by.ostrovsky.webhousingsystem.hibernate.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import by.ostrovsky.webhousingsystem.hibernate.entity.common.Common;

@Entity
@Table(name = "account")
public class Account extends Common<String>{
	@Id
	@Column(name = "ACCOUNT_LOGIN")
	private String id;
	@Column(name = "ACCOUNT_ACCESSLEVEL")
	private Integer accessLevel;
	@Column(name = "ACCOUNT_HASHED")
	private String hashed;
	@Column(name = "ACCOUNT_USERNAME")
	private String userName;
	@Column(name = "ACCOUNT_MAIL")
	private String mail;
	
	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public Account() {
	}

	@Override
	public String getId() {
		return id;
	}

	public void setId(String login) {
		this.id = login;
	}

	public Integer getAccessLevel() {
		return accessLevel;
	}

	public void setAccessLevel(Integer accessLevel) {
		this.accessLevel = accessLevel;
	}

	public String getHashed() {
		return hashed;
	}

	public void setHashed(String hashed) {
		this.hashed = hashed;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
}
